package com.yk.anima.dao;

import com.github.pagehelper.Page;
import com.yk.anima.pojo.ProductsCat;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ProductsCatMapper {
    int deleteByPrimaryKey(Integer pId);

    int insert(ProductsCat record);

    int insertSelective(ProductsCat record);

    ProductsCat selectByPrimaryKey(Integer pId);

    int updateByPrimaryKeySelective(ProductsCat record);

    int updateByPrimarySelective(ProductsCat record);

    int updateByPrimaryKey(ProductsCat record);

    List<ProductsCat> findAll();

    Page<ProductsCat> findByName(@Param("name") String name);
}